/**
 * @description: SendRecordSrv
 */

import type { CommonAPI } from '../types/all'
import { defHttp } from '../http'

/** 发送消息列表 */
export const getSendRecordListApi: CommonAPI<
  '/v1/send/record',
  'get'
> = params => defHttp.get(`/v1/send/record`, { params })

/** 获取 */
export const getSendRecordInfoApi: CommonAPI<
  '/v1/send/record/info',
  'get'
> = params => defHttp.get(`/v1/send/record/info`, { params })

/** 验证邮箱 */
export const postAlarmEmailApi: CommonAPI<'/v1/alarm/email', 'post'> = data =>
  defHttp.post(`/v1/alarm/email`, data)
